package com.sgcc.ln.pmos.mobileapp.utils;

import com.sgcc.ln.pmos.common.sm.SM2;

public class SmUtils {

    /**
     * SM2加密
     * @param str 需要加密的信息
     * @param pubKey sm2公钥
     * @return
     */
    public static String encryptSM2(String str, String pubKey){
    	SM2 sm2 = new SM2();
    	return sm2.encryptBySM2(str, pubKey);
    }

}
